import {baseUrl} from "@/config/env";

export default () => {
    return {
        index: true,
        indexWidth: 60,
        selection: true,
        size: 'default',
        labelWidth: 100,
        indexLabel: '序号',
        dialogType: 'drawer',
        menuAlign: 'center',
        menuType: "menu",
        align: 'center',
        dialogClickModal: false,
        addBtn: false,
        editBtn: false,
        menuBtn: false,
        searchIndex: 2,
        searchMenuSpan: 6,
        searchIcon: true,

        column: [
            {
                label: '包名称',
                span: 24,
                prop: 'packageName',
                search: true,
                searchSpan: 6,
                editDetail: true,
                viewDetail: true,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },
            {
                label: '模块名',
                span: 24,
                prop: 'moduleName',
            },
            {
                label: '父级菜单',
                prop: 'menuParentId',
                span: 24,
                type: "tree",
                dicUrl: baseUrl + '/start/sysMenu/AllMenu?isTree=true',
                filters: true,
                filterable: true,
                showColumn: false,
                props: {
                    label: "menuLabel",
                    value: "id",
                }
            },
            {
                label: '作者',
                prop: 'author',
                type: 'input',
                span: 24,

            },
        ]
    }
}
